package com.css.zfzx.fxpg.modules.percent.casualty.viewobjects;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Data;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author leon
 * @date 2020-11-13
 */
@Data
public class FxCasualtyPercentVO implements Serializable, IExcelDataModel, IExcelModel {
    private Integer rowNum;
    private String errorMsg;

    @NotNull(message = "缺失")
    @Excel(name = "省", width = 15)
    private String province;

    @NotNull(message = "缺失")
    @Excel(name = "市", width = 15)
    private String city;

    @NotNull(message = "缺失")
    @Excel(name = "区(县)", width = 15)
    private String area;

    @NotNull(message = "缺失")
    @Excel(name = "破坏程度", replace = {"基本完好_0", "轻微破坏_1", "中等破坏_2", "严重破坏_3", "完全破坏_4"}, width = 15)
    private String damageDegree;

    @NotNull(message = "缺失")
    @Excel(name = "重伤率", width = 15)
    private String seriousPrercent;

    @NotNull(message = "缺失")
    @Excel(name = "死亡率", width = 15)
    private String deathPrercent;

}